<!-- Header Area -->
<navbar></navbar>
<div class="row" ng-init="vm.initPassList()">
        <div class="col-md-12 col-md-offset-0 main" style="margin-top:5%">
          <h2 class="sub-header">Merchant State</h2>
            <ul class="nav nav-tabs" role="tablist">
                <li><a href="#!/untreated">Untreated</a></li>
                <li  class="active"><a href="#!/pass" >Pass</a></li>
                <li><a href="#!/refuse">Refuse</a></li>
            </ul>
          
      <!-- Tab panes -->
      <div class="tab-content">
      <!-- 已处理 -->
        <div role="tabpanel" class="tab-pane active">
          <div class="table-responsive">
                <table class="table table-striped">
                  <thead>
                    <tr>
                      <th>#</th>
                      <th>Name</th>
                      <th>StoreName</th>
                      <th>Idcard</th>
                      <th>Img</th>
                      <th>Address</th>
                      <th>State</th>
                      <th>SubmitTime</th>
                      <th>Block</th>
                    </tr>
                  </thead>
                  <tbody ng-controller="amplifierController as avm">
                    <tr ng-repeat="verify in vm.passList track by $index">
                      <td>{{$index+1}}</td>
                      <td>{{verify.name}}</td>
                      <td>{{verify.storeName}}</td>
                      <td ><img ng-click="avm.imgClick($event)" ng-src="{{verify.idcard}}" width="30px"/></td>
                      <td ><img ng-click="avm.imgClick($event)" ng-src="{{verify.img}}" width="30px"/></td>
                      <td>{{verify.address}}</td>
                      <td>{{verify.state | stateFilter}}</td>
                      <td>{{verify.submitTime | date: 'yyyy-MM-dd HH:mm:ss' }}</td>
                      <td>
                        <button type='button' class='btn btn-danger' ng-if="verify.block==0" ng-click="vm.modifyBlock($index)">Black</button>
                        <button type='button' class='btn btn-primary' ng-if="verify.block==1" ng-click="vm.modifyBlock($index)">White</button>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
        </div>
      </div>
    
</div>
<amplifier></amplifier>